// $ANTLR 3.4 C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g 2012-10-24 11:27:47

package PL.prac6;


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked"})
public class analex extends Lexer {
    public static final int EOF=-1;
    public static final int APARENTESIS=4;
    public static final int BLANCO=5;
    public static final int CPARENTESIS=6;
    public static final int DIGITO=7;
    public static final int MULTIDIV=8;
    public static final int NUMERO=9;
    public static final int SEPARADOR=10;
    public static final int SUMARESTA=11;

    // delegates
    // delegators
    public Lexer[] getDelegates() {
        return new Lexer[] {};
    }

    public analex() {} 
    public analex(CharStream input) {
        this(input, new RecognizerSharedState());
    }
    public analex(CharStream input, RecognizerSharedState state) {
        super(input,state);
    }
    public String getGrammarFileName() { return "C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g"; }

    // $ANTLR start "BLANCO"
    public final void mBLANCO() throws RecognitionException {
        try {
            int _type = BLANCO;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:8: ( ( ' ' | '\\t' | '\\r\\n' ) )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:10: ( ' ' | '\\t' | '\\r\\n' )
            {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:10: ( ' ' | '\\t' | '\\r\\n' )
            int alt1=3;
            switch ( input.LA(1) ) {
            case ' ':
                {
                alt1=1;
                }
                break;
            case '\t':
                {
                alt1=2;
                }
                break;
            case '\r':
                {
                alt1=3;
                }
                break;
            default:
                NoViableAltException nvae =
                    new NoViableAltException("", 1, 0, input);

                throw nvae;

            }

            switch (alt1) {
                case 1 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:11: ' '
                    {
                    match(' '); 

                    }
                    break;
                case 2 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:15: '\\t'
                    {
                    match('\t'); 

                    }
                    break;
                case 3 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:13:20: '\\r\\n'
                    {
                    match("\r\n"); 



                    }
                    break;

            }


            _channel = HIDDEN;

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "BLANCO"

    // $ANTLR start "DIGITO"
    public final void mDIGITO() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:14:17: ( '0' .. '9' )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:
            {
            if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "DIGITO"

    // $ANTLR start "NUMERO"
    public final void mNUMERO() throws RecognitionException {
        try {
            int _type = NUMERO;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:8: ( ( DIGITO )+ ( '.' ( DIGITO )+ )? )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:10: ( DIGITO )+ ( '.' ( DIGITO )+ )?
            {
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:10: ( DIGITO )+
            int cnt2=0;
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( ((LA2_0 >= '0' && LA2_0 <= '9')) ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:
            	    {
            	    if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt2 >= 1 ) break loop2;
                        EarlyExitException eee =
                            new EarlyExitException(2, input);
                        throw eee;
                }
                cnt2++;
            } while (true);


            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:19: ( '.' ( DIGITO )+ )?
            int alt4=2;
            int LA4_0 = input.LA(1);

            if ( (LA4_0=='.') ) {
                alt4=1;
            }
            switch (alt4) {
                case 1 :
                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:20: '.' ( DIGITO )+
                    {
                    match('.'); 

                    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:15:23: ( DIGITO )+
                    int cnt3=0;
                    loop3:
                    do {
                        int alt3=2;
                        int LA3_0 = input.LA(1);

                        if ( ((LA3_0 >= '0' && LA3_0 <= '9')) ) {
                            alt3=1;
                        }


                        switch (alt3) {
                    	case 1 :
                    	    // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:
                    	    {
                    	    if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
                    	        input.consume();
                    	    }
                    	    else {
                    	        MismatchedSetException mse = new MismatchedSetException(null,input);
                    	        recover(mse);
                    	        throw mse;
                    	    }


                    	    }
                    	    break;

                    	default :
                    	    if ( cnt3 >= 1 ) break loop3;
                                EarlyExitException eee =
                                    new EarlyExitException(3, input);
                                throw eee;
                        }
                        cnt3++;
                    } while (true);


                    }
                    break;

            }


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "NUMERO"

    // $ANTLR start "SUMARESTA"
    public final void mSUMARESTA() throws RecognitionException {
        try {
            int _type = SUMARESTA;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:16:11: ( ( '+' | '-' ) )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:
            {
            if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "SUMARESTA"

    // $ANTLR start "MULTIDIV"
    public final void mMULTIDIV() throws RecognitionException {
        try {
            int _type = MULTIDIV;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:17:9: ( ( '/' | '*' ) )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:
            {
            if ( input.LA(1)=='*'||input.LA(1)=='/' ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "MULTIDIV"

    // $ANTLR start "APARENTESIS"
    public final void mAPARENTESIS() throws RecognitionException {
        try {
            int _type = APARENTESIS;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:18:13: ( '(' )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:18:15: '('
            {
            match('('); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "APARENTESIS"

    // $ANTLR start "CPARENTESIS"
    public final void mCPARENTESIS() throws RecognitionException {
        try {
            int _type = CPARENTESIS;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:19:12: ( ')' )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:19:14: ')'
            {
            match(')'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "CPARENTESIS"

    // $ANTLR start "SEPARADOR"
    public final void mSEPARADOR() throws RecognitionException {
        try {
            int _type = SEPARADOR;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:20:11: ( ';' )
            // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:20:13: ';'
            {
            match(';'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "SEPARADOR"

    public void mTokens() throws RecognitionException {
        // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:8: ( BLANCO | NUMERO | SUMARESTA | MULTIDIV | APARENTESIS | CPARENTESIS | SEPARADOR )
        int alt5=7;
        switch ( input.LA(1) ) {
        case '\t':
        case '\r':
        case ' ':
            {
            alt5=1;
            }
            break;
        case '0':
        case '1':
        case '2':
        case '3':
        case '4':
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
            {
            alt5=2;
            }
            break;
        case '+':
        case '-':
            {
            alt5=3;
            }
            break;
        case '*':
        case '/':
            {
            alt5=4;
            }
            break;
        case '(':
            {
            alt5=5;
            }
            break;
        case ')':
            {
            alt5=6;
            }
            break;
        case ';':
            {
            alt5=7;
            }
            break;
        default:
            NoViableAltException nvae =
                new NoViableAltException("", 5, 0, input);

            throw nvae;

        }

        switch (alt5) {
            case 1 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:10: BLANCO
                {
                mBLANCO(); 


                }
                break;
            case 2 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:17: NUMERO
                {
                mNUMERO(); 


                }
                break;
            case 3 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:24: SUMARESTA
                {
                mSUMARESTA(); 


                }
                break;
            case 4 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:34: MULTIDIV
                {
                mMULTIDIV(); 


                }
                break;
            case 5 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:43: APARENTESIS
                {
                mAPARENTESIS(); 


                }
                break;
            case 6 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:55: CPARENTESIS
                {
                mCPARENTESIS(); 


                }
                break;
            case 7 :
                // C:\\Users\\Jose\\workspace\\prac6\\src\\main\\java\\PL\\prac6\\analex.g:1:67: SEPARADOR
                {
                mSEPARADOR(); 


                }
                break;

        }

    }


 

}